package com.itheima.thread.pool.demo01;

public class ThreadPoolDemo01 {

    public static void main(String[] args) {

        ThreadPool threadPool = new ThreadPool();

        for(int x = 0; x < 20; x++) {
            threadPool.submit(() -> System.out.println(Thread.currentThread().getName() + "----执行任务了...."));
        }

    }

}
